//
//  Car.m
//  day1-内存管理MRC
//
//  Created by Maggie on 15/8/1.
//  Copyright (c) 2015年 fmning. All rights reserved.
//

#import "Car.h"

@implementation Car

-(Car *)initWithType:(NSString *)type{
    self = [super init];
    if (self) {
        self.type = type;
    }
    return self;
}
#pragma mark - 对象销毁时自动调用
- (void)dealloc{
    //释放自己的资源
    NSLog(@"car dealloc");
    
    //调用父类dealloc
    [super dealloc];
}

@end
